let login_success_fn = async (ctx, next) => {
    ctx.redirect('http://www.xcd6.work');
};

let login_error_fn = async (ctx, next) => {
    ctx.response.body = '<h1>登陆失败，用户名或密码错误！</h1>';
};

module.exports = {
    '/login/success': ['get', login_success_fn],
    '/login/error': ['get', login_error_fn]
}